<template>
  <div class="info">
    <div class="person">
      <div class="photo"></div>
      <div class="name">Yifan Zhuo</div>
    </div>
    <div class="recommendation">
      <div class="word">为你推荐</div>
      <div class="item" v-for="item in items">{{item.title}}</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Info",
  data() {
    return {
      items: [
        {itemId: 0, title: 'HTML'},
        {itemId: 1, title: 'JavaScript'}
      ]
    }
  },
}
</script>

<style lang="scss">
  .info {
    display: flex;
    flex-direction: column;
    position: absolute;
    z-index: 2;
    top: 20px;
    right: 0;

    .person {
      width: 300px;
      height: 100px;
      display: flex;
      align-items: center;
      margin-bottom: 20px;

      .photo {
        margin-left: 7px;
        width: 70px;
        height: 70px;
        border: 1px solid lightgrey;
        -moz-border-radius: 50px;
        -webkit-border-radius: 50px;
        border-radius: 50px;
      }

      .name {
        margin-left: 15px;
      }
    }
    .recommendation {
      width: 300px;
      height: 300px;

      .word {
        font-weight: bold;
        margin-left: 9px;
        margin-top: 5px;
        margin-bottom: 15px;
        color: rgba(var(--f52,142,142,142),1);
      }
      .item {
        margin-left: 9px;
        height: 30px;
      }
    }
  }
</style>